﻿using Microsoft.ApplicationBlocks.Data;

namespace DataObject.TagDetails
{
    internal class TagDetailsDAL: DAL
    {
        /***************************************
        = Back End
        -------------------------------------- */
        internal static int TagDetails_Create(TagDetailsObject o)
        {
            return (int)SqlHelper.ExecuteScalar(Conn, "TagDetails_Create", o.Id, o.TagId, o.TypeId);
        }

        internal static void TagDetails_DeleteById_TypeId(long id, int typeId)
        {
            SqlHelper.ExecuteNonQuery(Conn, "TagDetails_DeleteById_TypeId", id, typeId);
        }

        internal static void TagDetails_DeleteByTagId(int tagId)
        {
            SqlHelper.ExecuteNonQuery(Conn, "TagDetails_DeleteByTagId", tagId);
        }
    }
}
